package com.ctrip.demo.tree;

import java.util.List;

public class User {

    Integer userId;

    String name;

    Integer parentId;

    private List<User> children;

    public User(String name, Integer parentId, Integer userId) {
        this.name = name;
        this.userId = userId;
        this.parentId = parentId;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<User> getChildren() {
        return children;
    }

    public void setChildren(List<User> children) {
        this.children = children;
    }

}
